package com.vm.utils;

import android.graphics.Bitmap;

import com.nostra13.universalimageloader.core.DisplayImageOptions;
import com.wwtscapp.apk.R;

public class MyDisplayImageOptions {

	private static DisplayImageOptions options;

	public static DisplayImageOptions getInstance() {

		if (options == null) {

			options = new DisplayImageOptions.Builder()
					.showImageOnLoading(R.drawable.loading)
					.showImageOnFail(R.drawable.error).cacheInMemory(true)
					.cacheOnDisk(true).bitmapConfig(Bitmap.Config.ALPHA_8)
					.build();

		}

		return options;

	}

}
